/* General styling */
body {
    font-family: Arial, sans-serif;
}

/* Form container styling */
.form-container {
    max-width: 600px;
    margin: auto;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Styling for input fields */
input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 8px;
    margin: 3px 0 15px 0;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* Styling for checkboxes */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.checkbox-group label {
    width: 48%;
    margin-bottom: 5px;
    font-weight: normal;
}

/* Full-width checkbox group styling */
.full-width-checkbox-group label {
    width: 100%;
    font-weight: normal;
}

/* Button styling */
.btn {
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 5px;
    cursor: pointer;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Field label styling */
.field-label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
    font-size: 1em;
}

/* Progress bar styling */
.progress-bar {
    width: 100%;
    background-color: #f3f3f3;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 20px;
    width: 0%;
    background-color: #007BFF;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.5s;
}

/* Modal styling for password input */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content input {
    width: 70%;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
}

.modal-content button {
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    margin: 10px;
}

.modal-content button:hover {
    background-color: #0056b3;
}

/* Stage indicators */
.stage-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.stage-indicator span {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 5px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    font-weight: bold;
}

.stage-indicator .active {
    background-color: #007BFF;
}

.hidden {
    display: none;
}

/* Review section bullet points */
.review-section ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.review-section li {
    margin-bottom: 10px;
}

.review-section li:first-child {
    margin-top: 0;
}

.review-section li:last-child {
    margin-bottom: 0;
}

/* Thank You Modal button styling */
.thank-you-buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 20px;
}

.thank-you-buttons button {
    flex: 1 1 45%;
    margin: 5px;
}

/* Styling for person segments */
.person-segment {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.person-segment h3 {
    margin-top: 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .form-container {
        padding: 10px;
    }

    .checkbox-group label {
        width: 100%; /* Stack checkboxes vertically */
    }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

.mandatory-star {
    color: red;
}

/* Modern Auth Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.auth-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f0f2f5; /* Light grey background */
    font-family: 'Inter', sans-serif;
    padding: 20px;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Important for rounded corners on panes */
}

.auth-pane-left {
    flex-basis: 45%;
    background: linear-gradient(135deg, #0056b3, #007BFF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.auth-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.welcome-content h1 {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-content p {
    font-size: 1.1em;
    line-height: 1.5;
}

.auth-pane-right {
    flex-basis: 55%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-pane-right h2 {
    font-size: 1.8em;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.auth-pane-right .field-label {
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 5px; /* Spacing between label and input */
}

.auth-pane-right input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 0.85em;
    color: #007BFF;
    text-decoration: none;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.auth-btn:hover {
    transform: translateY(-2px);
}

.social-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #aaa;
    margin: 25px 0;
}

.social-login-divider::before,
.social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.social-login-divider span {
    padding: 0 15px;
    font-size: 0.9em;
}

.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 0.95em;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
    background-color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.social-btn:hover {
    background-color: #f5f5f5;
}

.social-btn svg {
    margin-right: 10px;
}

.auth-toggle-link {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95em;
    color: #555;
}

.auth-toggle-link a {
    color: #007BFF;
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle-link a:hover {
    text-decoration: underline;
}

/* --- START: Final Input and Password Icon Styles (for ALL sections) --- */

/* 1. Unified styling for all text-like inputs in BOTH auth and profile pages */
.auth-pane-right input[type="email"],
.auth-pane-right input[type="password"],
.auth-pane-right input[type="text"],
.profile-content input[type="password"],
.profile-content input[type="text"] {
    width: 100%;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 12px;
    font-size: 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; 
    height: 47px;
    margin: 0; /* Remove all margins from the input itself */
}

/* 2. Consistent wrapper for ALL fields to stabilize layout */
.input-wrapper,
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px; /* Spacing is now handled by the wrapper */
}

/* 3. Add space ONLY inside the password field for the icon */
.password-wrapper input {
    padding-right: 45px;
}

/* 4. Precisely centered icon positioning */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
}
/* --- END: Final Styles --- */

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-pane-left {
        display: none; /* Hide branding pane on smaller screens */
    }
    .auth-pane-right {
        flex-basis: 100%;
        padding: 30px;
    }
    .auth-container {
        flex-direction: column;
         max-width: 400px; /* Constrain width on mobile */
    }
}

/* --- Modern User Status Nav-Bar --- */
.user-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* This line is the fix */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 10px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    box-sizing: border-box;
}

.user-nav-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-nav-logo {
    height: 35px;
    width: auto;
}

#welcomeMessage {
    font-size: 0.95em;
    color: #555;
    font-weight: 500;
}

.user-nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.credit-balance-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #e9f5ff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #0056b3;
}

@media (max-width: 500px) {
    .credit-balance-container {
        display: none; /* Hide the credit balance to make space */
    }
}

#creditBalance {
    font-weight: 700;
    font-size: 1.1em;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px; /* Reduced padding */
    background-color: #f8f9fa;
    color: #c82333;
    border: 1px solid #d6d8db;
    font-weight: 600;
    font-size: 0.9em; /* Reduced font size */
    transition: all 0.2s ease-in-out;
}

.btn-logout:hover {
    background-color: #c82333;
    color: #ffffff;
    border-color: #c82333;
}

/* Adjust the main form container to account for the new fixed nav-bar */
.form-container#formContainer {
    margin-top: 80px; /* Add top margin to prevent overlap */
}


#global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* The loader is hidden by default */
    display: none; 
}

.loader-spinner {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Styles for Account Dropdown --- */
.account-dropdown {
    position: relative;
    display: inline-block;
}

.btn-primary-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 15px;
    background-color: #007BFF;
    color: #ffffff;
    border: 1px solid #007BFF;
    font-weight: 600;
    font-size: 0.9em;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

@media (max-width: 500px) {
    .btn-primary-nav span {
        display: none; /* Hide the "Buy Credits" text */
    }
}

.btn-primary-nav:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.account-btn {
    background-color: #f8f9fa;
    color: #343a40;
    border: 1px solid #d6d8db;
    padding: 6px 15px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease-in-out;
}

.account-btn:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.account-icon {
    width: 20px;
    height: 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden; /* Ensures the border-radius applies to child elements */
    padding: 5px 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95em;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown-content.show {
    display: block;
}

/* --- Special Styling for Logout Link in Dropdown --- */
.dropdown-content a#logoutButton {
    font-weight: 600;
    color: #c82333; /* Red color for the text */
}

/* --- START: WORLD-CLASS PROFILE PAGE STYLES --- */

.dashboard-container {
    display: flex;
    max-width: 1100px;
    margin: 80px auto 40px auto; /* Margin for nav-bar and bottom space */
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
}

.profile-sidebar {
    flex: 0 0 260px; /* Do not grow, do not shrink, base width 260px */
    background-color: #ffffff;
    padding: 25px;
    border-right: 1px solid #e0e0e0;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #007BFF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: 600;
    margin: 0 auto 15px auto;
}

.sidebar-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.sidebar-header p {
    margin: 0;
    font-size: 0.9em;
    color: #777;
    word-break: break-all;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: #555;
    border-radius: 8px;
    margin-bottom: 5px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav .nav-link:hover {
    background-color: #f0f2f5;
}

.sidebar-nav .nav-link.active {
    background-color: #e9f5ff;
    color: #007BFF;
    font-weight: 600;
}

.sidebar-nav .nav-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.profile-content {
    flex-grow: 1;
    padding: 25px 40px;
    min-width: 0; /* <-- Add this line to allow the container to shrink */
}

.profile-content h1 {
    font-size: 2em;
    font-weight: 700;
    color: #222;
    margin-top: 0;
}

.profile-content > p {
    font-size: 1.1em;
    color: #666;
    margin-top: -10px;
    margin-bottom: 30px;
}

.profile-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box; 
}

.content-panel {
    display: none; /* Hide panels by default */
}

.content-panel.active {
    display: block; /* Show the active one */
}

.credit-display {
    font-size: 2em;
    font-weight: 700;
    color: #007BFF;
}

/* Responsive adjustments for the dashboard */
@media (max-width: 900px) {
    .dashboard-container {
        flex-direction: column;
        margin-top: 65px;
    }

    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* --- END: STYLES --- */

/* --- Styles for Transaction History Table --- */
.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95em;
}

.transaction-table th, .transaction-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.transaction-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.transaction-table tr:last-child td {
    border-bottom: none;
}

.transaction-table .credit {
    color: #28a745; /* Green for additions */
    font-weight: 600;
}

.transaction-table .debit {
    color: #dc3545; /* Red for deductions */
    font-weight: 600;
}

.profile-field {
    margin-bottom: 20px;
}

.profile-field .field-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 4px;
    margin-top: 0;
}

.profile-field p {
    font-size: 1.1em;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* --- Modal Styles --- */

/* The dark background that covers the whole screen */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1010;
    box-sizing: border-box;
    /* Add flexbox for centering */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Optional: adds some space on small screens */
}

/* --- Fix for Mobile Modal Scrolling --- */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-start;  /* Aligns modal to the top */
        padding-top: 20px;        /* Your preferred top padding */
    }

    .pricing-card:last-child {
        margin-bottom: 80px; /* Adds 80px of whitespace after the last card */
    }
}

.modal-content {
    background-color: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 900px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    /* Add these for self-scrolling */
    max-height: 90vh; /* Set max height to 90% of the viewport height */
    overflow-y: auto;   /* Enable vertical scrolling only when needed */
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}
.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #888;
}
/* --- Pricing Card Styles --- */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.pricing-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    flex-basis: 220px;
    display: flex;
    flex-direction: column;
}
.pricing-card h3 {
    margin-top: 0;
    color: #0056b3;
}
.pricing-card .price {
    font-size: 2em;
    font-weight: bold;
    margin: 10px 0;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    flex-grow: 1;
}
.pricing-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.pricing-card ul li:last-child {
    border-bottom: none;
}
.pricing-card .buy-now-btn {
    width: 100%;
    margin-top: auto;
}
.pricing-card.recommended {
    border-color: #0056b3;
    border-width: 2px;
    position: relative;
    transform: scale(1.05);
}
.recommended-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0056b3;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: bold;
}

/* --- Terms & Conditions Box Styling --- */
.tnc-container {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* --- Dashboard Hub Styles --- */
.dashboard-hub-container {
    max-width: 900px;
    margin: 80px auto 40px auto;
    padding: 20px;
}

.dashboard-hub-container h1 {
    text-align: center;
    font-size: 2.2em;
    font-weight: 700;
    color: #222;
}

.dashboard-hub-container .subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-top: -15px;
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.dashboard-card .card-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.dashboard-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
}

.dashboard-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    flex-grow: 1; /* This pushes the button to the bottom */
}

.dashboard-card .credit-cost {
    font-size: 0.9em;
    font-weight: 500;
    color: #0056b3;
    margin-top: 15px;
    margin-bottom: 20px;
}

.dashboard-card .auth-btn {
    width: 100%;
}

.dashboard-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none; /* Makes the card and its contents unclickable */
}

/* === MODERN DASHBOARD STYLES === */

/* Main Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px; /* Increased gap for better spacing */
    margin-top: 30px;
}

/* === REVISED MODERN DASHBOARD STYLES === */

/* Base Card Styling (Center Aligned) */
.dashboard-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px; 
    padding: 25px;
    display: flex;
    flex-direction: column;
    text-align: center; /* MODIFIED */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none; 
    color: inherit; 
}

/* Icon Styling (Center Aligned) */
.dashboard-card .card-icon {
    font-size: 2.5rem; 
    background: linear-gradient(135deg, #f3f4f6, #e9ecef);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto; /* MODIFIED for centering */
}

/* Card Title */
.dashboard-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
    color: #343a40;
}

/* Card Description */
.dashboard-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    flex-grow: 1; 
    margin-bottom: 20px;
}

/* Card Footer Layout (Center Aligned) */
.dashboard-card .card-footer {
    display: flex;
    flex-direction: column; /* MODIFIED for vertical stacking */
    gap: 12px; /* MODIFIED to create space between items */
    align-items: center; /* MODIFIED */
    margin-top: auto; 
    padding-top: 15px;
    border-top: 1px solid #f1f3f5;
}

/* === STYLES FOR TOP CARD & NEW LAYOUT === */

/* This new container centers the card above the main grid */
.hero-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

/* This styles the card itself. We set a width to match the grid cards. */
.hero-card-container .dashboard-card {
    width: 100%;
    max-width: 280px; /* Ensures it matches the size of cards in the grid */
}

/* New subtitle for the single documents section */
.single-doc-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin-top: 50px;
    margin-bottom: -10px;
    border-top: 1px solid #dee2e6;
    padding-top: 40px;
}

/* === STYLING FOR HIGHLIGHTED DASHBOARD CARD === */

/* This applies the special colors WITHOUT changing the layout or size */
.dashboard-card#startFullGenerator {
    background: linear-gradient(135deg, #0056b3, #007bff);
    color: #ffffff;
    border-color: #0056b3;
}

.dashboard-card#startFullGenerator .card-icon {
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-card#startFullGenerator h3,
.dashboard-card#startFullGenerator p,
.dashboard-card#startFullGenerator .card-action {
    color: #ffffff;
}

.dashboard-card#startFullGenerator .credit-cost {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}


/* --- START: STYLES FOR NEW CHECKOUT PAGE (COMPACTED V2) --- */

/* This styles the main wrapper for the checkout page */
.checkout-page-wrapper {
    max-width: 900px; /* Limits the width on large screens */
    background-color: transparent; /* Makes the background of the dashboard container invisible */
}

.checkout-content-container {
    width: 100%;
}

.checkout-content-container h1 {
    text-align: center;
    font-size: 1.6em; /* MODIFIED - Was 1.8em */
    font-weight: 700;
    color: #222;
    margin-bottom: 15px; 
}

/* This creates the two-column layout */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr; /* MODIFIED - Was 1.2fr 1fr */
    gap: 20px; 
}

/* --- START: MODIFICATION FOR CHECKOUT COMPACTNESS --- */
.checkout-grid .profile-card {
    padding: 12px 15px; 
    margin-bottom: 15px; 
}

/* --- Customer Details Pane (Left) --- */
.checkout-form-pane .profile-card h3 {
    margin-top: 0;
    margin-bottom: 5px; 
    font-size: 1.05em; /* MODIFIED - Was 1.15em */
}

.checkout-form-pane .profile-card p {
    font-size: 0.85em; /* MODIFIED - Was 0.9em */
    margin-bottom: 10px; 
    margin-top: 0;
    color: #6c757d; /* MODIFIED - Added */
}

.checkout-form-pane .field-label {
    margin-top: 8px; 
    font-size: 0.9em; 
    margin-bottom: 3px;
}

.checkout-form-pane .input-wrapper {
    margin-bottom: 10px; 
}

.checkout-form-pane input[type="text"], 
.checkout-form-pane select {
    padding: 10px; 
    height: auto; 
    font-size: 0.95em; 
    margin-bottom: 0;
}

/* --- Order Summary Pane (Right) --- */
.order-summary-pane .profile-card h3 {
    margin-top: 0;
    margin-bottom: 8px; 
    font-size: 1.05em; /* MODIFIED - Was 1.15em */
}
/* --- END: MODIFICATION FOR CHECKOUT COMPACTNESS --- */

#checkout-user-email {
    font-size: 0.9em; 
    color: #555;
    margin: 0;
}

.coupon-form-group {
    display: flex;
    gap: 10px;
    margin-top: 10px; 
}

.coupon-form-group input {
    margin: 0; /* Remove default margins */
    padding: 10px; 
    height: auto; 
    font-size: 0.95em; 
}

.coupon-form-group .btn {
    flex-shrink: 0; /* Prevents the button from shrinking */
    margin: 0;
    padding: 10px; 
    font-size: 0.95em; 
}

#coupon-message {
    margin-top: 8px; 
    font-size: 0.9em;
    font-weight: 500;
}

.payment-actions {
    margin-top: 15px; 
}

.payment-actions .auth-btn {
    width: 100%;
    padding: 12px; 
    font-size: 1.1em; 
}

/* Styles for the right-side order summary box */
.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0; 
    font-size: 0.95em; 
    color: #333;
}

.summary-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 3px 0; 
}

.total-row {
    font-size: 1.1em; /* MODIFIED - Was 1.15em */
    padding-top: 5px; 
}

.total-price {
    color: #0056b3;
}

.debit-text {
    color: #dc3545; /* Red color for discounts */
}

.credit-text {
    color: #28a745; /* Green color for bonuses and credits */
}

.trust-signals {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px; 
    color: #6c757d;
    font-size: 0.85em; 
}

/* Make it responsive for mobile phones */
@media (max-width: 768px) {
    .checkout-grid {
        grid-template-columns: 1fr; /* Stack columns on top of each other */
    }

    .order-summary-pane {
        grid-row-start: 1; /* Move the summary to the top on mobile */
    }
}

/* --- END: STYLES FOR NEW CHECKOUT PAGE --- */

/* Styles for GSTIN validation feedback */
.gstin-wrapper {
    position: relative;
}
.gstin-status {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 1.2em;
}
.gstin-status .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #007BFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.error-text {
    color: #dc3545; /* Red for errors */
    font-size: 0.85em;
    margin-top: -10px;
    margin-bottom: 15px;
}
/* Keyframes for spinner animation (if not already present) */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Style for the GSTIN warning note */
.gstin-note {
    font-size: 0.75em; /* MODIFIED - Was 0.8em */
    color: #6c757d; /* A muted grey color */
    margin-top: 15px;
    padding-bottom: 10px;
}

.gst-result-container {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    border: 1px solid;
}
.gst-result-container.success {
    background-color: #e9f7ef;
    border-color: #28a745;
    color: #155724;
}
.gst-result-container p {
    margin: 0 0 5px 0;
}
.gst-result-container p:last-child {
    margin-bottom: 0;
}

/* Visually indicate that the GSTIN field is disabled until prerequisites are met */
#checkout-gstin:disabled {
    background-color: #e9ecef; /* Light grey background */
    cursor: not-allowed;      /* "Not allowed" cursor on hover */
}

/* Style for the payment button when disabled */
#proceed-to-payment-btn:disabled {
    background-color: #cccccc; /* Grey background */
    color: #666666;      /* Darker grey text */
    cursor: not-allowed;  /* "Not allowed" cursor */
    opacity: 0.7;         /* Slightly faded */
    transform: none;      /* Remove hover effect */
}

/* Optional: Remove hover effect when disabled */
#proceed-to-payment-btn:disabled:hover {
    background-color: #cccccc;
     transform: none;
}

/* --- Sign-Up Promo Banner Styles --- */
.signup-promo-banner {
    display: flex;
    align-items: flex-start; /* Aligns icon with the top of the text */
    gap: 15px;
    background-color: #e9f5ff; /* Uses your existing light blue color */
    border: 1px solid #b6defa; /* Complements the background */
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px; /* Adds space before the social buttons */
}

.signup-promo-banner .promo-icon {
    flex-shrink: 0; /* Prevents icon from shrinking */
    width: 24px;
    height: 24px;
    color: #0056b3; /* Uses your existing primary blue */
    margin-top: 3px; /* Fine-tunes vertical alignment */
}

.signup-promo-banner .promo-text {
    font-family: 'Inter', sans-serif;
    color: #333;
}

/* This styles ALL <strong> tags (headline AND inline) to be blue and bold */
.signup-promo-banner .promo-text strong {
    font-weight: 600;
    color: #0056b3;
}

/* This adds the large font size and block-level display ONLY to the headline */
.signup-promo-banner .promo-text > strong {
    font-size: 1.1em;
    display: block;
}

.signup-promo-banner .promo-text p {
    font-size: 0.9em;
    color: #333; /* Clean, readable text */
    line-height: 1.5;
    margin: 4px 0 0 0; /* Removes default paragraph margin */
}